package com.young.springdemo.service.director;

//装饰者实现父类
public class Director extends Compoment {
    private Compoment compoment;

    public Director(Compoment compoment) {
        this.compoment = compoment;
    }

    public void setCompoment(Compoment compoment){
        this.compoment = compoment;
    }
    @Override
    public void display() {
        compoment.display();
    }
}
